import Vue from 'vue'
import App from './App'
import './uni.promisify.adaptor'
// 引入uView ui组件库
import uView from "uview-ui"
// 引入vuex store
import store from '@/store/index.js'
import Base from '@/utils/base.js'
import * as scache from '@/caches/smallcache/smallcache.js'
import * as CONSTANT from './common/constant.js'
import initvue from '@/utils/initvue/index.js'

Vue.config.productionTip = false

// vue挂载uView
Vue.use(uView)
Vue.use(initvue)

App.mpType = 'app'

// 将vuex的异步调用挂载到Vue的原型上。目的是让项目任意地方都能调用actions
Vue.prototype.$http = store.dispatch;
Vue.prototype.$base = Base;
Vue.prototype.$scache = scache;
Vue.prototype.$const = CONSTANT;

const app = new Vue({
	...App
})
app.$mount()